From a4cbea64db3896339a9bfad2c633b1d2701ff9ca Mon Sep 17 00:00:00 2001 From: Jimi Xenidis Date: Sun, 1 Oct 2006 20:40:44 -0400 Subject: [PATCH] [XEN][POWERPC] oops on debug build break Signed-off-by: Jimi Xenidis Signed-off-by: Hollis Blanchard --HG-- extra : transplant_source : w74%97%91o%9E%24%93%9B%F4%D9T%9B%A7%C6%7C%02%C7%3F --- xen/arch/powerpc/papr/xlate.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/xen/arch/powerpc/papr/xlate.c b/xen/arch/powerpc/papr/xlate.c index d01bd12c26..bfc3af9031 100644 --- a/xen/arch/powerpc/papr/xlate.c +++ b/xen/arch/powerpc/papr/xlate.c @@ -378,7 +378,6 @@ static void h_protect(struct cpu_user_regs *regs) static void h_clear_ref(struct cpu_user_regs *regs) { - ulong flags = regs->gprs[4]; ulong ptex = regs->gprs[5]; struct vcpu *v = get_current(); struct domain *d = v->domain; @@ -387,13 +386,13 @@ static void h_clear_ref(struct cpu_user_regs *regs) union pte lpte; DBG_LOW("%s: flags: 0x%lx ptex: 0x%lx\n", __func__, - flags, ptex); + regs->gprs[4], ptex); #ifdef DEBUG - if (flags != 0) { + if (regs->gprs[4] != 0) { DBG("WARNING: %s: " "flags are undefined and should be 0: 0x%lx\n", - __func__, flags); + __func__, regs->gprs[4]); } #endif @@ -421,7 +420,6 @@ static void h_clear_ref(struct cpu_user_regs *regs) static void h_clear_mod(struct cpu_user_regs *regs) { - ulong flags = regs->gprs[4]; ulong ptex = regs->gprs[5]; struct vcpu *v = get_current(); struct domain *d = v->domain; @@ -430,13 +428,13 @@ static void h_clear_mod(struct cpu_user_regs *regs) union pte lpte; DBG_LOW("%s: flags: 0x%lx ptex: 0x%lx\n", __func__, - flags, ptex); + regs->gprs[4], ptex); #ifdef DEBUG - if (flags != 0) { + if (regs->gprs[4] != 0) { DBG("WARNING: %s: " "flags are undefined and should be 0: 0x%lx\n", - __func__, flags); + __func__, regs->gprs[4]); } #endif -- 2.30.2